package com.appbee.gdata.picasaadmin.client;

import javax.inject.Inject;

import com.appbee.core.client.modular.IModulRegistry;
import com.appbee.core.client.modular.impl.ActivityModul;
import com.appbee.gdata.picasaadmin.client.activity.PicasaSettingsActivity;
import com.google.gwt.inject.client.AsyncProvider;

public class PicasaActivityModul extends ActivityModul
{
	private static final String PIACSA_SETTINGS = "piacsaSettings";
	private final IModulRegistry modulRegistry;

	@Inject
	public PicasaActivityModul(	IModulRegistry modulRegistry,
								AsyncProvider<PicasaSettingsActivity> picasaProvider)
	{
		this.modulRegistry = modulRegistry;
		setDefaultActivty(picasaProvider);
	}

	public void register()
	{
		modulRegistry.register(PIACSA_SETTINGS, this);
	}

	@Override
	public String getName()
	{
		return "Picasa settings";
	}

	@Override
	public String getId()
	{
		return PIACSA_SETTINGS;
	}


}
